/**
 *
 * @date 2019/12/16 0016
 * @author jiawei
 */
import request from '@/api/request'

//登录
export function login(param) {
  return request({
    url: 'login',
    method: 'get',
    params: param
  })
}

//注册
export function register(param) {
  return request({
    url: 'register',
    method: 'get',
    params: param
  })
}

//获取验证码
export function getCode(param) {
  return request({
    url: 'code',
    method: 'get',
    params: param
  })
}

//获取菜单
export function getMenus(param) {
  return request({
    url: 'menus',
    method: 'get',
    params: param
  })
}

//导出所有api
export default {
  login, register, getCode, getMenus
}
